package com.wx_shop.api.comm;


/**
 * 业务返回码 <br>
 * 请勿修改 GEN_CODE_START ... GEN_CODE_END 标签和标签之间的内容
 */
public enum ServiceCode {
	___GEN_CODE_START___(-20000, "自动生成内容【开始】不要编辑"),
	SUCCESS(10000, "成功"),
	FAILED(10001, "失败"),
	INVALID_PARAMS(10002, "请求参数错误"),
	ACCESS_DENIED(10003, "无权限操作"),
	NO_LOGIN(10004, "未登录"),
	___GEN_CODE_END___(-10000, "自动生成内容【结束】不要编辑"),
	
	//HttpStatus: 400
	
	//HttpStatus: 404
	
	//HttpStatus: 401
	
	//HttpStatus: 503
	
	//HttpStatus: 500
	
	STORE_NOT_ENOUGH(20001, "库存不足"),
	MINI_PROGRAM_LOGIN_FAILED(20002, "微信小程序登当错误"),
	GEN_JWT_TOKEN_FAIL(20003, "令牌生成失败"),
	TOKEN_INVALID(20004, "令牌无效"),
	
	;
	
	
	public String message;
	public int status;
	
	ServiceCode(int status, String message) {
		this.status = status;
		this.message = message;
	}
}
